﻿using BCDto.Common.UploadFileRecord;
using System;
using System.Collections.Generic;
using System.Text;

namespace BCService.Common.UploadFileRecord
{
    /// <summary>
    /// 上传文件记录服务接口
    /// </summary>
    public interface IUploadFileRecordService
    {
        /// <summary>
        /// 添加上传文件记录
        /// </summary>
        /// <param name="uploadFileRecordDto">上传文件记录信息</param>
        /// <returns></returns>
        UploadFileRecordDto Add(UploadFileRecordDto uploadFileRecordDto);

        /// <summary>
        /// 删除上传文件记录
        /// </summary>
        /// <param name="uploadFileRecordNo">上传文件记录编号</param>
        /// <returns></returns>
        bool Delete(string uploadFileRecordNo);
        /// <summary>
        /// 获取未转移至OSS的记录列表
        /// </summary>
        /// <returns></returns>
        IEnumerable<UploadFileRecordDto> GetNoneTransportList();
        /// <summary>
        /// 修改文件记录为已转移只OSS
        /// </summary>
        /// <param name="uploadFileRecordNo">上传文件记录编号</param>
        /// <returns></returns>
        bool UpdateTransported(string uploadFileRecordNo);
        /// <summary>
        /// 获取上传文件记录
        /// </summary>
        /// <param name="fileType">文件类型</param>
        /// <param name="index">页码</param>
        /// <param name="size">数量</param>
        /// <param name="total">总数</param>
        /// <returns></returns>
        IEnumerable<UploadFileRecordDto> GetUploadFileRecords(string fileType, int index, int size, out int total);
    }
}
